#ifndef miniAlcaCny_h
#define miniAlcaCny_h

#include <Arduino.h>
#include <Wire.h>

#define DIR_MINIALCACNY 0x4B
#define CONTROL_BYTE 0x44

class miniAlcaCny
{
	public:
		unsigned char array[4];
		unsigned char arrayCalibrated[4];
		unsigned char cny_max[4];
		unsigned char cny_min[4];

		unsigned char init ();
		unsigned char read();
		unsigned int posicion();
		void calibrate();
		unsigned char readCalibrated();
};

#endif
